WC_Braintree\PayPal\Buttons\Abstract_Button A

Total Complexity 68
Dependencies 6
Dependents 0
Total lines 683
Lines of code 284
Logical lines of code 111
Comment lines 252
Methods 33
Properties 2

Methods 33

Method Rating Maintainability Complexity Lines of code
set_customer_data()
S
44 5 54
is_single_use()
S
63 7 10
set_ship_to_different_address()
S
61 5 12
needs_shipping()
S
62 5 11
set_checkout_value()
S
57 4 16
disable_other_gateways()
S
63 4 11
enqueue_styles()
S
60 3 21
render_button()
S
56 3 18
render_cancel_link()
S
61 3 11
process_wc_api_request()
S
62 2 11
handle_wc_api()
S
75 2 5
get_js_handler_args()
S
57 1 15
render()
S
66 2 9
get_handler_js()
S
71 2 5
add_hooks()
S
73 2 6
get_gateway()
S
82 1 3
clear_session_data()
S
73 1 6
is_checkout_confirmation()
S
81 1 3
log_event()
S
81 1 3
get_cart_nonce()
S
81 1 3
__construct()
S
77 1 4
get_button_locale()
S
81 1 3
get_button_currency()
S
81 1 3
get_button_total()
S
82 1 3
is_enabled()
S
82 1 3
get_additional_button_params()
S
82 1 3
get_button_params()
S
63 1 9
render_js()
S
81 1 3
get_additional_js_handler_params()
S
82 1 3
get_form_handler_params()
S
73 1 5
is_wc_api_request_valid()
S
100 1 0
add_button_hooks()
S
63 1 9
is_logging_enabled()
S
81 1 3